const Router = require('koa-router')
const router = new Router()
const client = require('@/db/redis')

/**
 * 测试接口
 * @param {店铺类型} type
 * @returns
 */
router.get('/', async (ctx) => {
    const bodyData = ctx.request.query
    for(let i = 0;i<10;i++){
        await client.lpush(
            `ocr_queue`,
            JSON.stringify({
                user: 'luoshishi',
                uid: i,
                content: 'hello'
            })
        )
    }
    ctx.body = 'test'
})

module.exports = router
